RetroPie forum home
    • Recent
    • Tags
    • Popular
    • Home
    • Docs
    • Register
    • Login
    1. Home
    2. Tags
    3. python buttons
    Log in to post
    • All categories
    • G

      Reading arcade buttons input in python 3

      Watching Ignoring Scheduled Pinned Locked Moved Help and Support help python buttons python python3
      2
      0 Votes
      2 Posts
      329 Views
      mituM

      The encoders should appear as regular joystick/gamepads under Linux, so something like pygame or python-evdev should be enough to read the inputs.

    • M

      Need help getting retropie to recognize button matrix.

      Watching Ignoring Scheduled Pinned Locked Moved Help and Support input issue python buttons python script gpio
      5
      0 Votes
      5 Posts
      661 Views
      M

      Thanks for your help. Between the documentation and the example, I have the button matrix somewhat working I think.

    • M

      getting the GPIO buttons on the 3.2" screen to switch between HDMI and GPIO screen

      Watching Ignoring Scheduled Pinned Locked Moved Help and Support portable builds gpio python buttons
      2
      0 Votes
      2 Posts
      318 Views
      M

      @md201 Looks like my directories were off. Adding the simple /home/pi/switch to all os.system commands did the trick............ :(

    • anasazi29A

      GPIO connected button with Start/Select exit command?

      Watching Ignoring Scheduled Pinned Locked Moved General Discussion and Gaming gpio raspberry pi 3 python buttons python
      2
      0 Votes
      2 Posts
      2k Views
      caver01C

      @anasazi29 Broadly speaking, here is what you need to do: You need a python script that will watch a GPIO pin (that you have wired to a normally open switch like an arcade button--other wire to ground) such that when the button is pressed, the script sends a keypress. The key you send (suggestion: "ESC") would have to be picked up by the emulator as EXIT. So, you will have to go into your retroarch.cfg file, disable the hotkey function, and set the EXIT function to "ESC".

      I know of a few ways this has been done in the past. One of the more popular is to use the adafruit Retrogame software. This basically takes care of the scripting process and leaves it up to you to configure what keys the GPIO pins trigger. Some folks use ONLY this solution for input control.

      I also like mholgatem's GPIOneer which does the same thing, but uses a more elegant interactive configuration, then a web interface once it is setup. It is also easy to configure combo keys and to send full commands (I use it to send commands to increase and decrease master volume).

    • O

      Want to use USB Controllers and GPIO-Buttons for Hotkeys.

      Watching Ignoring Scheduled Pinned Locked Moved Help and Support python gpio buttons gpio python buttons raspberry pi 3b
      11
      0 Votes
      11 Posts
      6k Views
      O

      @Capt_MorganCreek Hey!
      Thank you very much for the file and the Help!
      I had to change a little bit in the Script and use now uinput from uinput.
      I ran into Problems with Dependencies... basically I haven't read thoroughly enough...
      Everything else in the Script is the same.
      Software works and the Buttons also... but! I have to make a new Plan on the Hardware itself.
      It turned out that the Way I wantet to build the entire Thing does not work. It just does not fit...
      Will have to see when I will have enough Time again to make a new Plan...

      Big Thanks for the Help!